//
//  ImageCollectionViewCell.m
//  B
//
//  Created by Sunpeng on 15/11/7.
//  Copyright © 2015年 wangzhan. All rights reserved.
//

#import "ImageCollectionViewCell.h"

@implementation ImageCollectionViewCell
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        //对imageView和label进行创建
        //1.在item里设置图片的位置
        self.myImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 0.293*WIDTH,0.165*HIGHT)];
        [self.contentView addSubview:self.myImageView];
        self.myImageView.layer.masksToBounds = YES;
        self.myImageView.layer.cornerRadius = 8.0;
        self.myImageView.layer.borderWidth = 1.0;
        self.myImageView.layer.borderColor = [[UIColor whiteColor] CGColor];
        
    }
    return self;
}


@end
